<%--
  Created by IntelliJ IDEA.
  User: dbychkov
  Date: 19.12.2014
  Time: 20:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

<tiles:insertDefinition name="mainTemplate">
  <tiles:putAttribute name="body">

    <div class = "content">

      <div class="well">
        <form name='login-form' action="<c:url value='/login_page'/>" method="post">
          <fieldset>
            <p style="margin: 14px 0px;">
              <i class="login-user-icon"></i>
              <input type="text" name="username" placeholder="Username">
            </p>
            <p style="margin: 14px 0px;">
              <i class="login-password-icon"></i>
              <input type="password" name="password" placeholder="Password"/>
            </p>
            <p style="margin: 14px 0px;">
              <input class="t-button" name="submit" type="submit" value="Sign in" />
            </p>
            <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
            <p style="margin: 14px 0px;" id="register">
              Not a member? <a href="#">Register now</a>
            </p>
          </fieldset>
        </form>
      </div>
    </div>

  </tiles:putAttribute>
</tiles:insertDefinition>

